<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Selenium Ice Tests</title>
    <style>
      body { font-family:Tahoma,sans-serif; }
    </style>
    <script>
      callShowMessage = function(){
        var textToSay = document.getElementById('say_hello_text').value;
        window.ice.showMessage(textToSay);
      }

      callHelloWorld = function(){
        window.ice.helloWorld();
      }
    </script>
  </head>
  <body>

    <form method="post" enctype="multipart/form-data" name="bhoTests">

      <h3>Show Message Box (zero parameters)</h3>
      <button id="say-hello" onclick="callHelloWorld()" />Say Hello</button>
      (A simple message box, taking no parameters. Message box will say "Hello, World!")
      <br /><br /><br />


      <h3>Show Message Box (with one parameter)</h3>
      Message: <input id="say_hello_text" name="say_hello_text" value="Your ad here!">
      <br />
      <button id="show-message" onclick="callShowMessage()" />Show Message</button>
      (This time, a parameter is passed from JavaScript to the BHO.)
      <br /><br /><br />

    </form>
  </body>
</html>
